public class GxContextMenuItem
implements GxContextMenuItemInterface
A class which represents a grid context menu item
Modifier and Type | Field and Description |
---|---|
BBjString | CssClasses! Additional CSS classes to be applied to the menu item |
BBjString | Icon! The icon to display beside the icon, either a DOM element or HTML string |
BBjString | Label! The item's label |
GxContextMenu | SubMenu! if this menu is a submenu, contains a list of submenu item definitions |
BBjString | Tooltip! Optional tooltip for the menu item |
Constructor and Description |
---|
GxContextMenuItem(BBjString id!) Construct new Menu item |
GxContextMenuItem(BBjString id! , BBjString label!) Construct new Menu item |
GxContextMenuItem(BBjNumber id! , BBjString label!) Construct new Menu item |
Modifier and Type | Method and Description |
---|---|
static BBjString | AUTO_SIZE_ALL() |
static BBjString | CHART_RANGE() |
static BBjString | CONTRACT_ALL() |
static BBjString | COPY() |
static BBjString | COPY_WITH_GROUP_HEADERS() |
static BBjString | COPY_WITH_HEADERS() |
static BBjString | CSV_EXPORT() |
static BBjString | EXCEL_EXPORT() |
static BBjString | EXPAND_ALL() |
static BBjString | EXPORT() |
BBjString | getId() Get the menu item ID |
static BBjString | RESET_COLUMNS() |
static BBjString | SEPARATOR() |
void | setIcon(BBjString url$, BBjNumber width!, BBjNumber height!) Construct an html image to use as an icon |
void | setIcon(BBjString url$, BBjNumber width!) Construct an html image to use as an icon |
String | toString() Convert the item to String |
public BBjString CssClasses!
Additional CSS classes to be applied to the menu item
public BBjString Icon!
The icon to display beside the icon, either a DOM element or HTML string
public BBjString Label!
The item's label
public GxContextMenu SubMenu!
if this menu is a submenu, contains a list of submenu item definitions
public BBjString Tooltip!
Optional tooltip for the menu item
public GxContextMenuItem(BBjString id!)
Construct new Menu item
BBjString
id! The item's IDpublic GxContextMenuItem(BBjString id! , BBjString label!)
Construct new Menu item
BBjString
id! The item's IDBBjString
label! The item's namepublic static BBjString AUTO_SIZE_ALL()
public static BBjString CHART_RANGE()
public static BBjString CONTRACT_ALL()
public static BBjString COPY()
public static BBjString COPY_WITH_GROUP_HEADERS()
public static BBjString COPY_WITH_HEADERS()
public static BBjString CSV_EXPORT()
public static BBjString EXCEL_EXPORT()
public static BBjString EXPAND_ALL()
public static BBjString EXPORT()
public BBjString getId()
Get the menu item ID
public static BBjString RESET_COLUMNS()
public static BBjString SEPARATOR()
public void setIcon(BBjString url$, BBjNumber width!, BBjNumber height!)
Construct an html image to use as an icon
BBjString
url$ image url or base64 stringBBjNumber
width! image widthBBjNumber
height! image heightpublic void setIcon(BBjString url$, BBjNumber width!)
Construct an html image to use as an icon
BBjString
url$: image url or base64 stringBBjNumber
width!: image widthpublic String toString()
Convert the item to String